<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Box2D: b2DistanceProxy Struct Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="icon.gif"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Box2D
   &#160;<span id="projectnumber">2.2.1</span>
   </div>
   <div id="projectbrief">A 2D Physics Engine for Games</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a>  </div>
  <div class="headertitle">
<div class="title">b2DistanceProxy Struct Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="b2DistanceProxy" -->
<p><code>#include &lt;<a class="el" href="b2_distance_8h_source.html">b2Distance.h</a>&gt;</code></p>

<p><a href="structb2_distance_proxy-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structb2_distance_proxy.html#a80a59a9c9e952482a8fc6db4b883365d">Set</a> (const <a class="el" href="classb2_shape.html">b2Shape</a> *shape, int32 index)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad763543846db0c220e6b0a29275d723e"></a><!-- doxytag: member="b2DistanceProxy::GetSupport" ref="ad763543846db0c220e6b0a29275d723e" args="(const b2Vec2 &amp;d) const " -->
int32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structb2_distance_proxy.html#ad763543846db0c220e6b0a29275d723e">GetSupport</a> (const <a class="el" href="structb2_vec2.html">b2Vec2</a> &amp;d) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the supporting vertex index in the given direction. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad98a909b9aee9e42ba184b1e6bd526ba"></a><!-- doxytag: member="b2DistanceProxy::GetSupportVertex" ref="ad98a909b9aee9e42ba184b1e6bd526ba" args="(const b2Vec2 &amp;d) const " -->
const <a class="el" href="structb2_vec2.html">b2Vec2</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structb2_distance_proxy.html#ad98a909b9aee9e42ba184b1e6bd526ba">GetSupportVertex</a> (const <a class="el" href="structb2_vec2.html">b2Vec2</a> &amp;d) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the supporting vertex in the given direction. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a43c51168f2829c55dacc8b9adbd90206"></a><!-- doxytag: member="b2DistanceProxy::GetVertexCount" ref="a43c51168f2829c55dacc8b9adbd90206" args="() const " -->
int32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structb2_distance_proxy.html#a43c51168f2829c55dacc8b9adbd90206">GetVertexCount</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the vertex count. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac5ecae62c2a96afdf220074118c71a92"></a><!-- doxytag: member="b2DistanceProxy::GetVertex" ref="ac5ecae62c2a96afdf220074118c71a92" args="(int32 index) const " -->
const <a class="el" href="structb2_vec2.html">b2Vec2</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structb2_distance_proxy.html#ac5ecae62c2a96afdf220074118c71a92">GetVertex</a> (int32 index) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get a vertex by index. Used by b2Distance. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3fc5ebfa3d34ac66390b88f9277fb330"></a><!-- doxytag: member="b2DistanceProxy::m_buffer" ref="a3fc5ebfa3d34ac66390b88f9277fb330" args="[2]" -->
<a class="el" href="structb2_vec2.html">b2Vec2</a>&#160;</td><td class="memItemRight" valign="bottom"><b>m_buffer</b> [2]</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abaf1495b8214b74d944b57170a762f32"></a><!-- doxytag: member="b2DistanceProxy::m_vertices" ref="abaf1495b8214b74d944b57170a762f32" args="" -->
const <a class="el" href="structb2_vec2.html">b2Vec2</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>m_vertices</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae36efab1361bb1f94e32f9b956c6f1b3"></a><!-- doxytag: member="b2DistanceProxy::m_count" ref="ae36efab1361bb1f94e32f9b956c6f1b3" args="" -->
int32&#160;</td><td class="memItemRight" valign="bottom"><b>m_count</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a459c93f35b1e62d583bd73d8c478ce89"></a><!-- doxytag: member="b2DistanceProxy::m_radius" ref="a459c93f35b1e62d583bd73d8c478ce89" args="" -->
float32&#160;</td><td class="memItemRight" valign="bottom"><b>m_radius</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A distance proxy is used by the GJK algorithm. It encapsulates any shape. </p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a80a59a9c9e952482a8fc6db4b883365d"></a><!-- doxytag: member="b2DistanceProxy::Set" ref="a80a59a9c9e952482a8fc6db4b883365d" args="(const b2Shape *shape, int32 index)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void b2DistanceProxy::Set </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classb2_shape.html">b2Shape</a> *&#160;</td>
          <td class="paramname"><em>shape</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int32&#160;</td>
          <td class="paramname"><em>index</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Initialize the proxy using the given shape. The shape must remain in scope while the proxy is in use. </p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following files:<ul>
<li><a class="el" href="b2_distance_8h_source.html">b2Distance.h</a></li>
<li>b2Distance.cpp</li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Sat Sep 17 2011 17:35:55 for Box2D by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
